import {axios} from '../utils/request'
import {INTRODUCTION_MODULE} from "./_prefix";

export const setAnswer = payload => {
    const {origin, answer} = payload;
    return axios.post(`${INTRODUCTION_MODULE}/answer?origin=${origin}&answer=${answer}`).then( res => {
        return res;
    });
}

export const checkAnswer = payload => {
    const {predictionId} = payload;
    return axios.post(`${INTRODUCTION_MODULE}/check?predictionId=${predictionId}`).then( res => {
        return res;
    });
}
